package com.example.learningnote.views;

import android.os.Bundle;
import android.os.Handler;

import android.os.Looper;
import android.os.Message;
import android.util.Log;
import android.widget.TextView;

import androidx.activity.EdgeToEdge;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentTransaction;

import com.example.learningnote.R;
import com.example.learningnote.response.UserResponse;
import com.example.learningnote.utils.Http;

public class UserActivity extends AppCompatActivity {
    private TextView resultTextView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // EdgeToEdge.enable(this);
        setContentView(R.layout.activity_user);
        Http.init(this);
        // 动态添加 Fragment
        if (savedInstanceState == null) {
            FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
            transaction.replace(R.id.login_fragment, new LoginFragment());
            transaction.replace(R.id.user_info_fragment, new UserInfoFragment());
            transaction.commit();
        }
    }
}